<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS层叠性</title>
    <style>
        div {
            /*  颜色冲突，遵循就近原则进行重叠*/
            color: red;

            /* 字体不冲突，不会重叠 */
            font-size: 25px;
        }
        div {
            color: blue;
        }
    </style>
</head>
<body>
    <div>长江后浪推前浪</div>
</body>
</html>